package com.hushao.lims.weblims.repository;

import com.hushao.lims.weblims.domain.EquipmentRepair;
import com.hushao.lims.weblims.domain.TeacherInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;


/**
 * @author 930588706
 * @date 18/1/28
 */
public interface EquipmentRepairsRepository extends JpaRepository<EquipmentRepair,Integer> {
    /**
     * 根据器材名称模糊查询个人器材报修集合（分页）
     * @param equipmentName
     * @param teacher
     * @param pageable
     * @return
     */

    Page<EquipmentRepair> findByEquipmentInfo_EquipmentNameLikeAndApplyTeacher(String equipmentName, TeacherInfo teacher, Pageable pageable);

    Page<EquipmentRepair> findByEquipmentInfo_EquipmentNameLikeAndAndRepairStateLike(String equipmentName, String state, Pageable pageable);
}
